export  const targetSystemCol =(_this)=>{
  let arr = [];
  if(_this.activityType!=='real'){
    arr =  [{
      title:'资产名称',
      key:'targetName',
    },
        {
          title:'所属单位',
          key:'institutionName'
        },
        {
          title:'供应商',
          key:'vendorName'
        },
        {
          title:'网络名称',
          key:'testNetinfoName'
        }]
  }else{
    arr = [
      {
        title:'靶标系统名称',
        key:'targetName',
      },
      {
        title:'所属单位',
        key:'institutionName'
      },
      {
        title:'行业',
        key:'industry',
        render:(h,params)=>{
          let str = ''
          if (params.row.industry) {
            str = (_this.industryList.find(item => item.dictid === params.row.industry) || {}).dictname
            return h('Tooltip', {
              props:{
                maxWidth:200,
                content:str,
                transfer:true
              }
            }, [
              h('span', {
                style: {
                  display: 'inline-block',
                  overflow: 'hidden',
                  textOverflow: 'ellipsis',
                  whiteSpace: 'nowrap',
                  width: '100%'
                }
              }, str)
            ])
          } else {
            return h('span', str)
          }
        }
      },
      {
        title:'地址',
        key:'urls',
        render:(h,params)=>{
          let str = ''
          if (params.row.urls && params.row.urls.length) {
            str = params.row.urls.map(item => item.url).join()
            return h('Tooltip', {
              props:{
                maxWidth:200,
                content:str,
                transfer:true
              }
            }, [
              h('span', {
                style: {
                  display: 'inline-block',
                  overflow: 'hidden',
                  textOverflow: 'ellipsis',
                  whiteSpace: 'nowrap',
                  width: '100%'
                }
              }, str)
            ])
          } else {
            return h('span', str)
          }
        }
      },
      {
        title:'IP',
        key:'ip',
        render:(h,params)=>{
          let str = ''
          if (params.row.urls && params.row.urls.length) {
            str = params.row.urls.map(item => item.ip).join()
            return h('Tooltip', {
              props:{
                maxWidth:200,
                content:str,
                transfer:true
              }
            }, [
              h('span', {
                style: {
                  display: 'inline-block',
                  overflow: 'hidden',
                  textOverflow: 'ellipsis',
                  whiteSpace: 'nowrap',
                  width: '100%'
                }
              }, str)
            ])
          } else {
            return h('span', str)
          }
        }
      },
      {
        title:'区域',
        key:'region'
      },
    ]
  }
  return [
      ...arr,
    {
      title: '操作',
      slot: 'action',
      width:160,
      opList: _this.actionButtons
    }
  ]

}
